/**
 * ListPullLauncherActivity.java
 * com.jamin.pullrefresh
 *
 * Function： TODO 
 *
 *   ver     date      		author
 * ──────────────────────────────────
 *   		 2012-5-28 		wangjieming
 *
 * Copyright (c) 2012, TNT All Rights Reserved.
*/

package com.jamin.pullrefresh;

import com.jamin.AndroidBaseSDKActivity;
import com.jamin.flinggallery.FlingGalleryActivity;
import com.jamin.tab.TabActivityGroup;
import com.jamin.tab.ViewPagerActivity;

import android.app.LauncherActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;
/**
 * ClassName:ListPullLauncherActivity
 *
 * @author   wangjieming
 * @version  1.0
 * @since    v1.0
 * @Date	 2012-5-28 下午3:59:43 
 */
public class ListPullLauncherActivity extends LauncherActivity{



	@Override
	protected void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this , android.R.layout.simple_list_item_1 , names);
		setListAdapter(adapter);
	}
	
	
	@Override
	protected Intent intentForPosition(int position) {
		return new Intent(ListPullLauncherActivity.this , clazzs[position]);
	}
	
	Class<?> [] clazzs = { 
			PullUpRefreshTestActivity.class ,
			PullDownRefreshTestActivity.class , 
			PullExActivity.class , 

	};

	String [] names = {
			"上拉更新",
			"下拉更多",
			"拉动更新的展开菜单(待完善)"
	};
}

